import request from '@/config/axios'

export interface MemberCommentVO {
  id: number
  no: string
  userId: number
  content: string
  momentId: number
  momentUser: string
  commentTime: Date
  imgUrl: string
  videoUrl: string
  status: number
  momentNo: string
  momentContent: string
  auitUser: string
  auitTime: Date
  rejectReason: string
}

// 查询相亲会员评价列表
export const getMemberCommentPage = async (params) => {
  return await request.get({ url: `/blind/member-comment/page`, params })
}

// 查询相亲会员评价详情
export const getMemberComment = async (id: number) => {
  return await request.get({ url: `/blind/member-comment/get?id=` + id })
}

// 新增相亲会员评价
export const createMemberComment = async (data: MemberCommentVO) => {
  return await request.post({ url: `/blind/member-comment/create`, data })
}

// 修改相亲会员评价
export const updateMemberComment = async (data: MemberCommentVO) => {
  return await request.put({ url: `/blind/member-comment/update`, data })
}

// 删除相亲会员评价
export const deleteMemberComment = async (id: number) => {
  return await request.delete({ url: `/blind/member-comment/delete?id=` + id })
}